module Traffic_Lights_with_SN74138 (
    input      Green,
    input      Yellow,
    input      Red,
    input      EN,
    output reg LED_Out
);
  wire [7:0] out_reg;
  SN74138 sn74138 (
      .a (Green),
      .b (Yellow),
      .c (Red),
      .en(EN),
      .y (out_reg)
  );
  always @(Green, Yellow, Red, EN) begin
    if (EN == 1) begin
      case (out_reg)
        8'b11111101: LED_Out <= 1'b1;
        8'b11111011: LED_Out <= 1'b1;
        8'b11101111: LED_Out <= 1'b1;
        default: LED_Out <= 1'b0;
      endcase
    end else begin
      LED_Out <= 1'b0;
    end
  end
endmodule
